import Layout from "@/layout/index";

export default {
  path: '/commodity_manager',
  component: Layout,
  breadcrumb: false,
  redirect: 'noRedirect',
  meta: {
    // id: 'commodity_manager',
    title: '商品管理',
    icon: 'shangpin',
  },
  children: [
    {
      name: 'true',
      path: 'true',
      hidden: true,
      component: () => import('@/views/commodity/compile/commodity_true'),
      meta: {
        // id: 'commodity_manager/list',
        title: '完成',
        icon: 'edit'
      },
    },
    {

      name: 'dity',
      path: 'dity',
      hidden:true,
      component: () => import('@/views/commodity/compile/commodity_dity'),
      meta: {
        // id: 'commodity_manager/list',
        title: '编辑',
        icon: 'edit'
      },
    },
    {
      name: 'commodity_list',
      path: 'list',
      component: () => import('@/views/commodity/commodity_list'),
      meta: {
        // id: 'commodity_manager/list',
        title: '商品列表',
        icon: 'list',
        promptMsg: [
          "该页面展示了商城所有的商品信息，可以对商品进行编辑修改操作",
          "商家添加商品后，需要商城进行审核，审核通过后才能上架售"
        ]
      },
      children: []
    },
    {
      name: 'commodity_type',
      path: 'type',
      component: () => import('@/views/commodity/commodity_type'),
      meta: {
        // id: 'commodity_manager/type',
        title: '商品分类',
        icon: '01_shangpinfenlei',
        promptMsg: [
          '展示了平台所有的商品分类', '可在列表直接增加下一级分类',
          '可在商品分类列表进行转移分类下的商品',
          '鼠标移动“设置”位置，可新增下一级分类、查看下一级分类、转移商品等操作',
          "设置分类显示会同步操作分类及子分类下所有商品是否显示，请谨慎操作"
        ]
      },
    },
    {
      name: 'commodity_typeNext',
      path: 'typeNext',
      hidden: true,
      component: () => import('@/views/commodity/commodity_typeNext'),
      meta: {
        // id: 'commodity_manager/type',
        title: '商品分类',
        activeMenu: '/commodity_manager/type'
      },
    },
    {
      name: 'commodity_typeLast',
      path: 'typeLast',
      hidden: true,
      component: () => import('@/views/commodity/commodity_typeLast'),
      meta: {
        // id: 'commodity_manager/type',
        title: '商品分类',
        activeMenu: '/commodity_manager/type'
      },
    },
    {
      name: 'commodity',
      path: 'commodity',
      hidden: true,
      component: () => import('@/views/commodity/log/commodity.vue'),
      meta: {
        // id: 'commodity_manager/type',
        title: '商品/日志',
        icon: '01_shangpinfenlei',
      },
    },
    {
      name: 'commodity_typeAdd',
      path: 'typeAdd',
      hidden: true,
      component: () => import('@/views/commodity/commodity_typeOperation'),
      meta: {
        title: '商品分类 / 添加分类',
        type: 'add',
        activeMenu: '/commodity_manager/type',
        promptMsg: [
          '标识“*”的选项为必填项，其余为选填项。', '请按提示栏信息进行商品分类添加。'
        ]
      },

    },
    {
      name: 'commodity_typeEdit',
      path: 'typeEdit',
      hidden: true,
      component: () => import('@/views/commodity/commodity_typeOperation'),
      meta: {
        title: '商品分类 / 编辑分类',
        type: 'edit',
        activeMenu: '/commodity_manager/type',
        promptMsg: [
          '标识“*”的选项为必填项，其余为选填项。', '请按提示栏信息进行商品分类添加。'
        ]

      },
    },
  ]

}
